package com.cy.pj.arithmetic.controller;

import com.cy.pj.common.pojo.ResponseResult;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/doCompute/{n1}/{n2}")
public class ArithmeticController {
    @RequestMapping("/doCompute/{n1}/{n2}")
    public ResponseResult doCompute(@PathVariable Integer n1, @PathVariable Integer n2) {
        Integer result = n1 / n2;
        return new ResponseResult("result is " + result);//正常结果数据
    }
}
